package main

import (
	
	"go-empty-project/configs"
	"go-empty-project/routes"
	"fmt"
	"github.com/gin-gonic/gin"
	
)

func main() {

	  

	r := gin.New()

	gin.SetMode(gin.ReleaseMode)
	
	routes.ApiRoutes(r)

	port := configs.App.Port
	fmt.Println("startup at:", port)

	if err := r.Run(port); err != nil {
		fmt.Println("startup service failed, err:", err)
		panic(err)
	}
	fmt.Println("startup service at:", port)

}
